import { createApp } from 'vue'
import App from './App.vue'

//引入element-plus & css & 使用element-plus [vite的完整引入]
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// import text from "./views/text/index.vue";
// import Home from '@/views/home/index'
// import mapList from "@/views/mapList/index.vue";

//引入全局样式
import '@/assets/styles/index.scss'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

//路由引入和使用
import router from '@/router'
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)
app.use(ElementPlus)
app.mount('#app')
